﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Add_course : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Calendar1.SelectedDate = DateTime.Today;

    }
    protected void bntEdit1_Click(object sender, EventArgs e)
    {
        SqlDataSource1.Insert();
        SaveFileUpload(); 
    }
    private void SaveFileUpload()
    {
        string strFilename;
        if (fulFilePath.FileName != "")
        {
            strFilename = Server.MapPath("~/App_Data/upload\\" + fulFilePath.FileName);
            fulFilePath.PostedFile.SaveAs(strFilename);
        }
    }
}
